<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/icon.css"/>">
<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
<title>显示员工信息</title>
</head>

<body>
		<script type="text/javascript">	
		
		function show_ch_SelectedDate(rowData) { 			
			var chinfo=$("#c_chid").textbox("getText");
			  $("#a_yhic").textbox("setText",chinfo);
			  
			  var dlzh=$("#tontyiStaffId").html();	
  			   $("#b_ygid").textbox("setText",dlzh);            
  			   var YNygid=$("#b_ygid").textbox("getText");	   											
					if(YNygid!=null || YNygid!=""){
						$.ajax({
			                type: "Post",
			                url: "to_useygidToTbstaff",
			                data: {staffNo:YNygid},
			                success: function (data) {
			                    $("#c_kcid").textbox("setText",data[0].departmentNo);
			                }
			            });
					}
			  
			  var rowIndex=$('#chtab').datagrid('getRowIndex',$('#chtab').datagrid('getSelected'))
			  $('#chtab').datagrid('deleteRow',rowIndex);
			  $.messager.alert("温馨提示","重呼成功");	
			  $("#c_chid").textbox("setText","");			  
		}  
		
		</script> 
		<table id="chtab" class="easyui-datagrid"
			data-options="
				fitColumns:true,
				fit:true,
				rownumbers: true,
			    url: 'toicTopage?chid='+${ieId},
				border:true,
				pagination:true,
				pageSize: 8,
				onClickRow :function(rowIndex,rowData){  
                 	show_ch_SelectedDate(rowData);  
                },  
				pageList:[8,16,24,32]
			">
			<thead>
				<tr>
					<th class="ident" data-options="field:'iId'">Ic卡号</th>
					<th class="ident" data-options="field:'iName',width:10">持卡者姓名</th>
					<th class="ident" data-options="field:'iIdentityCard',width:15,editor:'textbox'">身份证号码</th>
					<th class="ident" data-options="field:'iAge'">持卡者年龄</th>
					<th class="ident" data-options="field:'iSex'">持卡者性别</th>				
					<th class="ident" data-options="field:'iPho',width:10,">联系电话</th>					
				</tr>
			</thead>
		</table>
</body>
</html>